package com.dayu.springbootrabbit;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 自动配置
 * 1.RabbitAutoConfiguration
 * 2.有自动配置了连接工厂ConnectionFactory
 * 3.RabbitProperties封装了Rabbit的配置
 * 4.rabbitTemplate:给babbitmq发送和接受消息
 * 5.amqpadmin是系统管理组件声明队列或交换器
 * 创建删除Queue,Exchange,Binding
 * 6.@EnableRabbit +@RabbitListener
 */
@SpringBootApplication
@EnableRabbit//开启rabbit基于注解的rabbit
public class SpringbootRabbitApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootRabbitApplication.class, args);
    }

}
